package com.example.datajdbc.model;

import org.springframework.data.domain.Persistable;
import org.springframework.lang.Nullable;

import lombok.Data;

@Data
public class Model implements Persistable<String> {

    private final String name;

    private final String description;

    @Override
    @Nullable
    public String getId() {
        return this.name;
    }

    @Override
    public boolean isNew() {
        return true;
    }

}
